package com.ybkj.daijia.server.model;

import java.math.BigDecimal;

/**
 * 提成表
 *
 * @author Shine
 */
public class MemberRebate extends Base {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    private Integer type;//提成类型 0一次性 1代驾

    private Integer level;//提成等级 0不提成 1一级 2二级 3三级

    /**
     * 第一级
     */
    private BigDecimal commission1;// 提成比例

    private BigDecimal money1;// 提成金额

    private MemberRebateType memberRebateType1; // 提成方式

    /**
     * 第二级
     */
    private BigDecimal commission2;// 提成比例

    private BigDecimal money2;// 提成金额

    private MemberRebateType memberRebateType2; // 提成方式

    /**
     * 第三级
     */
    private BigDecimal commission3;// 提成比例

    private BigDecimal money3;// 提成金额

    private MemberRebateType memberRebateType3; // 提成方式


    //一次性提成
    private BigDecimal disposableMoney1;// 一次性提成金额
    private BigDecimal disposableMoney2;// 一次性提成金额
    private BigDecimal disposableMoney3;// 一次性提成金额

    private Integer memberRewardNode;//客户推荐提成

    private Long companyId;

    private String content;//分享文字


    public Integer getMemberRewardNode() {
        return memberRewardNode;
    }

    public void setMemberRewardNode(Integer memberRewardNode) {
        this.memberRewardNode = memberRewardNode;
    }

    public BigDecimal getCommission1() {
        if (null == commission1) {
            return BigDecimal.ZERO;
        }
        return commission1;
    }


    public void setCommission1(BigDecimal commission1) {
        this.commission1 = commission1;
    }


    public BigDecimal getMoney1() {
        if (null == money1) {
            return BigDecimal.ZERO;
        }
        return money1;
    }


    public void setMoney1(BigDecimal money1) {
        this.money1 = money1;
    }


    public BigDecimal getCommission2() {
        if (null == commission2) {
            return BigDecimal.ZERO;
        }
        return commission2;
    }


    public void setCommission2(BigDecimal commission2) {
        this.commission2 = commission2;
    }


    public BigDecimal getMoney2() {
        if (null == money2) {
            return BigDecimal.ZERO;
        }
        return money2;
    }


    public void setMoney2(BigDecimal money2) {
        this.money2 = money2;
    }


    public BigDecimal getCommission3() {
        if (null == commission3) {
            return BigDecimal.ZERO;
        }
        return commission3;
    }


    public void setCommission3(BigDecimal commission3) {
        this.commission3 = commission3;
    }


    public BigDecimal getMoney3() {
        if (null == money3) {
            return BigDecimal.ZERO;
        }
        return money3;
    }


    public void setMoney3(BigDecimal money3) {
        this.money3 = money3;
    }


    public MemberRebateType getMemberRebateType1() {
        if (null == memberRebateType1) {
            return MemberRebateType.guding;
        }
        return memberRebateType1;
    }


    public void setMemberRebateType1(MemberRebateType memberRebateType1) {
        this.memberRebateType1 = memberRebateType1;
    }


    public MemberRebateType getMemberRebateType2() {
        if (null == memberRebateType2) {
            return MemberRebateType.guding;
        }
        return memberRebateType2;
    }


    public void setMemberRebateType2(MemberRebateType memberRebateType2) {
        this.memberRebateType2 = memberRebateType2;
    }


    public MemberRebateType getMemberRebateType3() {
        if (null == memberRebateType3) {
            return MemberRebateType.guding;
        }
        return memberRebateType3;
    }


    public void setMemberRebateType3(MemberRebateType memberRebateType3) {
        this.memberRebateType3 = memberRebateType3;
    }

    public Integer getType() {
        if (null == type) {
            return 0;
        }
        return type;
    }


    public void setType(Integer type) {
        this.type = type;
    }


    public Integer getLevel() {
        if (null == level) {
            return 0;
        }
        return level;
    }


    public void setLevel(Integer level) {
        this.level = level;
    }


    public BigDecimal getDisposableMoney1() {
        if (null == disposableMoney1) {
            return BigDecimal.ZERO;
        }
        return disposableMoney1;
    }


    public void setDisposableMoney1(BigDecimal disposableMoney1) {
        this.disposableMoney1 = disposableMoney1;
    }


    public BigDecimal getDisposableMoney2() {
        if (null == disposableMoney2) {
            return BigDecimal.ZERO;
        }
        return disposableMoney2;
    }


    public void setDisposableMoney2(BigDecimal disposableMoney2) {
        this.disposableMoney2 = disposableMoney2;
    }


    public BigDecimal getDisposableMoney3() {
        if (null == disposableMoney3) {
            return BigDecimal.ZERO;
        }
        return disposableMoney3;
    }


    public void setDisposableMoney3(BigDecimal disposableMoney3) {
        this.disposableMoney3 = disposableMoney3;
    }

    public Long getCompanyId() {
        return companyId;
    }


    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }


    public String getContent() {
        return content;
    }


    public void setContent(String content) {
        this.content = content;
    }


    public enum MemberRebateType {
        /**
         * 比例提成
         */
        percent,
        /**
         * 固定提成
         */
        guding
    }


}
